<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>会员大病救助</title>
<link rel="stylesheet" type="text/css"
	href="../../css/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="../../css/themes/icon.css" />
<script type="text/javascript" src="../../js/jquery-1.7.2.js"></script>
<script type="text/javascript"
	src="../../js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript">
	$(function() {
		$('#panel_edit').panel({});
		$('#tt').datagrid({
			title : '已批准救助申请',
			rownumbers : true,
			singleSelect : true,
			onClickRow : function(rowIndex, rowData) {
				execFrame(function(wind) {
					wind.clearForm();
					wind.loadData(rowData);
				})
			}
		});
		loadData();
	})
	function loadData() {
		$.get("../../member/salvage/feedbackeds", window.top.cur_object,
				function(str) {
					if (typeof str == "object" && str instanceof Array) {
						$('#tt').datagrid("loadData", str);
					}
				})
	}
	function execFrame(fun) {
		var frame = $("iframe", $("#panel_edit").panel())[0];
		var wind = frame.contentWindow;
		if (wind && wind.loadData) {
			fun(wind);
		} else {
			if (frame.attachEvent) {
				frame.attachEvent("onload", function() {
					fun(frame.contentWindow);
				});
			} else {
				frame.onload = function() {
					fun(frame.contentWindow);
				};
			}
		}
	}
</script>
<style type="text/css">
body {
	text-align: center;
	margin: 0px;
	padding: 0px;
	width: 100%;
	height: 100%;
}
</style>
</head>
<body style="margin: 0">
	<table id="tt" class="easyui-datagrid" data-options=""
		style="width: 100; height: 200px;">
		<thead>
			<tr>
				<th data-options="field:'applyerName',width:80">经办人</th>
				<th data-options="field:'approverName',width:80">审批人</th>
				<th data-options="field:'illnessItem',width:80">大病项目</th>
				<th data-options="field:'applyMoney',width:80">救助申请金额</th>
				<th data-options="field:'applyDate',width:80">申请日期</th>
				<th data-options="field:'approveMoney',width:80">批准金额</th>
				<th data-options="field:'approveDate',width:80">批准日期</th>
				<th data-options="field:'stateText',width:80">状态</th>
			</tr>
		</thead>
	</table>
	<hr />
	<div id="panel_edit" style="width: 800px; height: 400px">
		<iframe id="frame_edit" width="100%" height="100%" frameborder="0"
			src="feedback_Salvage.jsp?readonly=readonly"></iframe>
	</div>

</body>
</html>